#version 330
layout(location = 0) in vec4 position;

uniform mat4 orthoMatrix;
uniform vec4 offset;
uniform vec4 color;

out VertexData{
    vec4 color;
} vertexOut;

void main()
{
    ///TODO fix it so that ortho matrix does the tranlsation too
    gl_Position = orthoMatrix*(position+offset) - vec4(1.0, 1.0, 0, 0);
    vertexOut.color = color;
}
